package app.mvc.view.components.dragDrop
{
	import alternativa.gui.mouse.IMouseCoordListener;
	import alternativa.gui.mouse.MouseManager;
	
	import app.mvc.view.components.uiControls.UIObject;
	
	import flash.geom.Point;
	
	public class DraggingDetectoer implements IMouseCoordListener
	{
		public function DraggingDetectoer()
		{
		}
		
		public function mouseMove(mouseCoord:Point):void
		{
			if(DropLayer.lastContainerObject)
			{
				DropLayer.lastContainerObject.focusContainer=false;
				DropLayer.lastContainerObject = null;
			}
			var uiObject:UIObject = MouseManager.overed as UIObject;
			if(uiObject && uiObject.model.isContainer)		//检测到是容器类控件
			{
				uiObject.focusContainer = true;
				DropLayer.lastContainerObject = uiObject;
			}
		}
	}
}